#include<bits/stdc++.h>
#define int long long
#define endl '\n'
using namespace std;
const int mod=998244353,inf=0x3f3f3f3f3f3f3f3f;
const int N=2e5+10,M=2e5+10;
signed main()
{
	ios::sync_with_stdio(false);
	cin.tie(0),cout.tie(0);
//	freopen(".in","r",stdin);
	freopen("contest.in","w",stdout);
	int n=1e6;
	cout << n << endl;
	for ( int i = 1 ; i <= n ; i++ )
	{
		cout << "4 ";
		cout << i << " " << n+i << " " << n+n+i << " " << 3*n+i << endl;
	}
	return 0;
}


